#ifndef VoERTPObserverImpl_H
#define VoERTPObserverImpl_H

#include "jni_api.h"
#include "voe_rtp_rtcp.h"

class VoERTPObserverImpl : public webrtc::VoERTPObserver, public JniCallbackGlobal
{
public:
	VoERTPObserverImpl(void);
	~VoERTPObserverImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:
	virtual void OnIncomingCSRCChanged(
		const int channel, const unsigned int CSRC, const bool added);

	virtual void OnIncomingSSRCChanged(
		const int channel, const unsigned int SSRC);

protected:
	jmethodID m_mid_OnIncomingCSRCChanged;
	jmethodID m_mid_OnIncomingSSRCChanged;
};

#endif //!VoERTPObserverImpl_H
